<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button>1</button>
    <div id='ii'></div>
    <div id='iii'></div>
    <script>
        var button = document.querySelector('button');
        var div= document.querySelector('#ii');
        var div1=document.querySelector('#iii');
        button.onclick=function(event){
            console.log(event);
        }
        document.onmousemove = function(event){
            // console.log(event);
            div.innerHTML=`${event.pageX} ${event.pageY}`
        }
    </script>
</body>
</html>